﻿@model HeaderLinksModel
@using Nop.Web.Models.Common;

    <div class="header-links">
        @Html.Widget("header_links_before")
        <div class="user-links utm ">
            <ul>
                @if (Model.IsAuthenticated)
                {
                    <li><a href="@Url.RouteUrl("CustomerInfo")" class="account">@Model.CustomerEmailUsername</a></li>
                }
                else
                {
                    @*<li><a href="@Url.RouteUrl("Register")" class="ico-register">@T("Account.Register")</a></li>*@
                        
                    <li><a href="@Url.RouteUrl("Login")" class="ico-login">@T("pagetitle.account")</a></li>
                }
                @if (Model.ShoppingCartEnabled)
                {
                    <li id="topcartlink">
                        <a href="@Url.RouteUrl("ShoppingCart")" class="ico-cart">@T("ShoppingCart") (@Model.ShoppingCartItems)</a>
                    </li>
                }
                @if (Model.IsAuthenticated)
                {
                    <li><a href="@Url.RouteUrl("Logout")" class="ico-logout">@T("Account.Logout")</a></li>
                }
            </ul>
        </div>
        <div class="shared-links">
            <ul>
                <li><a href="@Url.RouteUrl("HomePage")">@T("HomePage")</a></li>
                <li><a href="@Url.RouteUrl("Topic", new { SystemName = "aboutus" })">@T("AboutUs")</a></li>
                <li><a href="@Url.RouteUrl("NewsArchive")">@T("News")</a></li>

                @if (Model.BlogEnabled)
                {
                    <li><a href="@Url.RouteUrl("Blog")">@T("Blog")</a></li>
                }
                @*if (Model.ForumEnabled)
                {
                    <li><a href="@Url.RouteUrl("Boards")">@T("Forum.Forums")</a></li>
                }*@
                @*<li><a href="@Url.RouteUrl("TradingFloor")">@T("TradingFloor")</a></li>*@
				<li><a href="http://dealgamer.vn/vi/boards/forumgroup/4/mua-b%C3%A1n">@T("TradingFloor")</a></li>
                <li><a href="@Url.RouteUrl("Ranking")">@T("Ranking")</a></li>
                <li><a href="@Url.RouteUrl("Benefits")">@T("Benefits")</a></li>
                @if (!Model.WishlistEnabled)
                {
                    <li><a href="@Url.RouteUrl("Wishlist")" class="ico-wishlist">@T("Wishlist")</a> <a href="@Url.RouteUrl("Wishlist")" class="wishlist-qty">
                                                                                                        (@Model.WishlistItems)</a> </li>
                }
                <li><a href="@Url.RouteUrl("ContactUs")">@T("ContactUs")</a></li>
            </ul>
        </div>
        @Html.Widget("header_links_after")
    </div>

        @if (Model.ShoppingCartEnabled)
        {
            <script type="text/javascript">
                $('#topcartlink').live('mouseenter', function() {
                    $('#flyout-cart').addClass('active');
                });
                $('#topcartlink').live('mouseleave', function() {
                    $('#flyout-cart').removeClass('active');
                });
                $('#flyout-cart').live('mouseenter', function() {
                    $('#flyout-cart').addClass('active');
                });
                $('#flyout-cart').live('mouseleave', function() {
                    $('#flyout-cart').removeClass('active');
                });
            </script>
        }